import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vant from "vant"
import "vant/lib/index.css"

Vue.use(Vant)


import axios from './api/http'

import VueLazyload from "vue-lazyload"
Vue.use(VueLazyload,{
//懒加载时候的缩略图
loading:"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1602435436063&di=feca1d6b05d40dfef20912b0ac2d7468&imgtype=0&src=http%3A%2F%2Fimgsrc.baidu.com%2Fforum%2Fw%3D580%2Fsign%3D38725a11b2b7d0a27bc90495fbee760d%2Fd8730d338744ebf88f0a529cd9f9d72a6059a729.jpg"
})
//创建时间总线到原型链上，用于详情组件和底部组件的传值
const bus=new Vue()
Vue.prototype.$bus=bus



Vue.prototype.$axios=axios

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
